home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
By Popular Request 2.0
/
By Popular Request 2.0 (Arsenal Computer).ISO
/
amiga_1
/
aminot21.lha
/
Install_AmiNote.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-07-10
|
3KB
|
79 lines
/*
$VER: AmiNote_Install v1.0 (10 Jul 95)
*/
options results
cls = '0C0A'x
bell = '07'x
nl = '0A'x
call open(Shell,'con:0/11/640/60/ AmiNote_Install v1.0 - DFD Ltd.')
if ~show('L','rexxsupport.library') then do
if addlib('rexxsupport.library',0,-30,0) then nop
else do
call writeln Shell,cls||center('LIBS:rexxsupport.library is not available.',76)
exit 10
end
end
if ~exists('LIBS:apig.library') then do
call writeln Shell,cls||center('Copying libs/apig.library to LIBS:',76)
shell command('copy >nil: libs/apig.library LIBS: clone')
end
if ~show('L','apig.library') then do
if addlib('apig.library',0,-30,0) then nop
else do
call writeln Shell,cls||center('LIBS:apig.library is not available.',76)
exit 10
end
end
call SET_APIG_GLOBALS()
freq = ALLOCFILEREQUEST()
call writeln Shell,cls||center('Where do you want to install AmiNote?',76)
install_path = REQUESTFILE(freq,0,0,'Where to install AmiNote',null(),null(),1,1,null(),0,22,320,177,null())
call FREEFILEREQUEST(freq)
if install_path = null() then signal Die
call writeln Shell,cls||center('Installing AmiNote',76)
shell command('copy >nil: AmiNote 'install_path' clone')
call writeln Shell,cls||center('Insalling Run_Script & Icon',76)
shell command('copy >nil: Run_AmiNote#? 'install_path' clone')
if ~exists('S:AmiNote.config') then do
call writeln(Shell,cls||center('Installing AmiNote.config in S:',76))
shell command('copy >nil: s/AmiNote.config S: clone')
call writeln(Shell,bell||cls||center('You need to edit S:AmiNote.config to work',76))
call writeln(Shell,center('with YOUR bbs file library or AmiNet mirror setup.',76))
call Ret
end
call makedir('ENV:DFD')
call makedir('ENVARC:DFD')
if exists('ENV:AmiNote.prefs') then do
call writeln(Shell,cls||center('Moving your ENV:AmiNote.prefs to ENV:DFD/',76))
shell command('copy >nil: ENV:AmiNote.prefs ENV:DFD clone')
call writech(Shell,nl' Delete ENV:AmiNote.prefs (y/N) ? ')
response = readch(Shell,1)
if upper(response) = 'Y' then call delete('ENV:AmiNote.prefs')
if exists('ENVARC:AmiNote.prefs') then do
call writeln(Shell,cls||center('Moving your ENVARC:AmiNote.prefs to ENVARC:DFD/',76)
shell command('copy >nil: ENVARC:AmiNote.prefs ENVARC:DFD clone')
call writech(Shell,nl' Delete ENVARC:AmiNote.prefs (y/N) ? ')
response = readch(Shell,1)
if upper(response) = 'Y' then call delete('ENVARC:AmiNote.prefs')
end
end
call writeln(Shell,cls||center('- Install to "'install_path'" Complete -',76))
say 'AmiNote v2.1a was installed in >> 'install_path
call Ret
Die:
call close Shell
exit
Ret:
call writech(Shell,nl' Press Return ')
call readch(Shell,1)
return